<?php


class TestAction extends Action{
	
	function up(){
		
		$Upload = new \HjCommon\PicCDN();
		
		if($_FILES){
			
			$url = $Upload->getDirectQiniuUrl(
				"multiupload","AP/test/".rand().".jpg"
			);
// 			echo $url;
			
			$Upload->clear();
			
			echo '{"imgurl":"'.$url.'"}';
			return ;
		}
		
		$this->display("Test/up");
	}
}